<%--
  Created by IntelliJ IDEA.
  User: xiaoji
  Date: 2017/2/23
  Time: 16:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools"/>
<script type="text/javascript" src="${webRoot}/plug-in/fancybox/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="${webRoot}/plug-in/fancybox/fancybox/jquery.fancybox-1.3.4.js"></script>
<link rel="stylesheet" type="text/css" href="${webRoot}/plug-in/fancybox/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<div class="easyui-layout" fit="true">
    <div region="center" style="padding:1px;">
        <t:datagrid name="bankList" title="" actionUrl="capitalController.do?datagrid&aCustomerEntity.customerId=${customerId}" idField="capitalId" fit="true"
                    queryMode="group" onLoadSuccess="bandImg">
            <t:dgCol title="capitalId" field="capitalId" hidden="true"></t:dgCol>
            <t:dgCol title="下单人昵称" field="aCustomerEntity.nickname"  align="center"></t:dgCol>
            <t:dgCol title="下单人姓名" field="aCustomerEntity.realname"   align="center"></t:dgCol>
            <t:dgCol title="交易时间" field="tradingTime" formatter="yyyy-MM-dd"  ></t:dgCol>
            <t:dgCol title="交易类型" field="type" dictionary="capitaType"></t:dgCol>
            <t:dgCol title="交易金额" field="money" ></t:dgCol>
            <t:dgCol title="资金入出" field="opt2" dictionary="opt"></t:dgCol>
            <t:dgCol title="交易描述" field="tradingDesc"></t:dgCol>

            <t:dgCol title="common.operation" field="opt"></t:dgCol>
            <t:dgFunOpt funname="f_orderdetail(capitalId)" title="查看" ></t:dgFunOpt>
        </t:datagrid>
    </div>
</div>
<script type="text/javascript">
    function avatarFormatter(val,row){
        return '<a rel="datagrid_group" href="'+val+'" title=""><img alt="" src="'+val+'" style="width:30px;height:30px;"></a>';
    }
    function bandImg(){
        $("a[rel=datagrid_group]").fancybox({
            'overlayShow'	: false,
            'transitionIn'	: 'elastic',
            'transitionOut'	: 'elastic'
        });
    }
    //交易记录
    function f_orderdetail(customerId){
        tip("跳转到订单详情");
    }

</script>
